<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
    <legend>添加店铺</legend>
</fieldset>
<form class="layui-form layui-form-pane" action="/h_s_doadd" method="post">
     @if(count($errors)>0)
                    @foreach ($errors->all() as $error)
                    <div class="mws-form-message error">
                            {{ $error }}
                     </div>
                    @endforeach
                @endif
    <div class="layui-form-item">
        <label class="layui-form-label">店铺名字</label>
        <div class="layui-input-block">
            <input type="text" name="shopname" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">店铺链接</label>
        <div class="layui-input-block">
            <input type="text" name="shop_link" autocomplete="off" placeholder="请输入标题" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        {{csrf_field()}}
        <button class="layui-btn" lay-submit="">跳转式提交</button>
        
    </div>
</form>

<script type="text/javascript" src="/Home/frame/layui/layui.js"></script>
<!-- <script src="/Admin/assets/js/jquery-1.8.3.min.js"></script> -->
<script type="text/javascript">

layui.use(['layer','jquery'], function () {
    var layer       = layui.layer
        ,vipNav     = layui.vip_nav
        ,$          = layui.jquery;
    console.log($)
    $('.layui-btn-warm').click(function(){
        $.ajax({
            type:"get",
            url:"/h_s_add",
            success:function(msg){
                if(msg){
                    $(".body").html(msg);
                }else {
                    
                    alert('无输出');
                }
            }
        });
    });

});

</script>
